package com.futureway.test.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.futureway.test.entity.User;
import com.querydsl.core.QueryResults;
import com.querydsl.core.Tuple;
import com.querydsl.core.types.Predicate;

public interface UserService {

	QueryResults<Tuple> page(List<Predicate> predicates, Pageable pageable);

	Page<User> page(Predicate predicate, Pageable pageable);

	Integer save(String userName);

	List<User> findAll();

	User get(Integer id);

	List<User> findAll(String userName);
}
